package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 打款申请信息
 * @author XJY
 */
public class Tremittance implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;						//最后修改时间
	private Long agreeUserId;					//同意打款人id
	private Long createdUserId;					//提现订单创建人id
	private Integer type;					    //打款类型(0供应商打款 1平台打款 2团长打款)
	private Integer status;					    //审核状态(-1不同意打款 0未审核 1同意打款 2延迟打款)
	private Integer payStatus;					//打款状态(-1失败 0未打款 1处理中 2成功 )
	private String withdrawNo;					//提现单号
	private Double orderAmount;					//订单总额
	private Double profitRatio;					//分润比例
	private Double serviceCharge;			    //手续费
	private Double cloudServiceCharge;			//云享手续费
	private Double realityExpend;				//实际打款金额
	private Double realityAmount;			    //实际到账金额
	private Double leaderAmount;				//团长打款金额
	private String payeeName;					//收款方姓名
	private Integer payType;					//打款方式(0易宝分账 1云享代付)
	private String auditOpinion;				//审核意见
	private Date gmtAgree;						//同意打款时间
	private Date gmtReality;					//实际到账时间

	private String createdUserName;				//提现订单创建人名称
	private String agreeUsername;				//同意打款人名称 
	
	

    public Tremittance() {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
    }


    public Tremittance(Long createdUserId,Integer type,String withdrawNo,Double orderAmount,Double profitRatio,String payeeName,Integer payType) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.createdUserId=createdUserId;
       this.type=type;
       this.status=0;
       this.payStatus=0;
       this.withdrawNo=withdrawNo;
       this.orderAmount=orderAmount;
       this.profitRatio=profitRatio;;
       this.payeeName=payeeName;
       this.payType=payType;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setAgreeUserId(Long agreeUserId){
		this.agreeUserId=agreeUserId;
	}

	public Long getAgreeUserId(){
		return agreeUserId;
	}

	public void setCreatedUserId(Long createdUserId){
		this.createdUserId=createdUserId;
	}

	public Long getCreatedUserId(){
		return createdUserId;
	}

	public void setType(Integer type){
		this.type=type;
	}

	public Integer getType(){
		return type;
	}

	public void setStatus(Integer status){
		this.status=status;
	}

	public Integer getStatus(){
		return status;
	}

	public void setPayStatus(Integer payStatus){
		this.payStatus=payStatus;
	}

	public Integer getPayStatus(){
		return payStatus;
	}

	public void setWithdrawNo(String withdrawNo){
		this.withdrawNo=withdrawNo;
	}

	public String getWithdrawNo(){
		return withdrawNo;
	}

	public void setOrderAmount(Double orderAmount){
		this.orderAmount=orderAmount;
	}

	public Double getOrderAmount(){
		return orderAmount;
	}

	public void setProfitRatio(Double profitRatio){
		this.profitRatio=profitRatio;
	}

	public Double getProfitRatio(){
		return profitRatio;
	}

	public void setServiceCharge(Double serviceCharge){
		this.serviceCharge=serviceCharge;
	}

	public Double getServiceCharge(){
		return serviceCharge;
	}

	public void setRealityAmount(Double realityAmount){
		this.realityAmount=realityAmount;
	}

	public Double getRealityAmount(){
		return realityAmount;
	}

	public void setPayeeName(String payeeName){
		this.payeeName=payeeName;
	}

	public String getPayeeName(){
		return payeeName;
	}

	public void setPayType(Integer payType){
		this.payType=payType;
	}

	public Integer getPayType(){
		return payType;
	}

	public void setAuditOpinion(String auditOpinion){
		this.auditOpinion=auditOpinion;
	}

	public String getAuditOpinion(){
		return auditOpinion;
	}

	public void setGmtAgree(Date gmtAgree){
		this.gmtAgree=gmtAgree;
	}

	public Date getGmtAgree(){
		return gmtAgree;
	}

	public void setGmtReality(Date gmtReality){
		this.gmtReality=gmtReality;
	}

	public Date getGmtReality(){
		return gmtReality;
	}

	public String getAgreeUsername() {
		return agreeUsername;
	}

	public void setAgreeUsername(String agreeUsername) {
		this.agreeUsername = agreeUsername;
	}

	public String getCreatedUserName() {
		return createdUserName;
	}

	public void setCreatedUserName(String createdUserName) {
		this.createdUserName = createdUserName;
	}


	public Double getLeaderAmount() {
		return leaderAmount;
	}


	public void setLeaderAmount(Double leaderAmount) {
		this.leaderAmount = leaderAmount;
	}


	public Double getCloudServiceCharge() {
		return cloudServiceCharge;
	}


	public void setCloudServiceCharge(Double cloudServiceCharge) {
		this.cloudServiceCharge = cloudServiceCharge;
	}


	public Double getRealityExpend() {
		return realityExpend;
	}


	public void setRealityExpend(Double realityExpend) {
		this.realityExpend = realityExpend;
	}

}
